package top.shaoxia.pwdm.pojo;

import java.util.StringJoiner;

/**
 * @Author:WJC
 * @DateTime:2020/3/9 16:28
 */
public class AppResultDTO {
    // 状态 SUCCESS | ERROR 
    private String status;
    // 提示信息
    private String msg;
    //数据
    private Object data;

    public AppResultDTO() {
    }

    public AppResultDTO(String status) {
        this.status = status;
    }

    public AppResultDTO(String status, String msg, String data) {
        this.status = status;
        this.msg = msg;
        this.data = data;
    }

    public AppResultDTO(String status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", AppResultDTO.class.getSimpleName() + "[", "]")
                .add("status='" + status + "'")
                .add("msg='" + msg + "'")
                .add("data=" + data)
                .toString();
    }
}
